obj-m += 1_ioctl.o

obj-m += 2_ioctl_iow_ior_magic.o
2_ioctl_iow_ior_magic-y = 2_ioctl_IOW_IOR_官网魔幻数opt.o

obj-m += 3_my_ioctl_opt.o
3_my_ioctl_opt-y = 3_ioctl_自己实现iotctl_opt选项.o

PWD := $(CURDIR)
all:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean